<?php
require_once(CORE_DIR.'components/facebook/facebook.php');
class facebookComponent extends Facebook {

	private $appConfig = array(
		'appId'=>'745967472092415',
		'secret'=>'a5a0cfca7702e3b487660e766b12ab29',
		'allowSignedRequest'=>false,
		'cookie'=>true
	);

	function __construct()
	{
		parent::__construct($this->appConfig);
	}

	public function isLogin()
	{
		$user = $this->getUser();
		return !empty($user) ? true : false;
	}

	public function getUserID()
	{
		if($this->isLogin()){
			return $this->getUser();
		}
	}
}







